From 233281fd394b34e6b4a7684ea362781f72c3a476 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 12 Mar 2010 15:58:11 -0500 Subject: [PATCH] Recompute label contents when the buffer changes Also reset cursor positions to avoid assertions. This fixes bug 612505, patch by Tristan Van Berkom. --- gtk/gtkentry.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c index 1a9442474e..227af1c7a8 100644 --- a/gtk/gtkentry.c +++ b/gtk/gtkentry.c @@ -6708,6 +6708,9 @@ gtk_entry_set_buffer (GtkEntry *entry, g_object_notify (obj, "invisible-char"); g_object_notify (obj, "invisible-char-set"); g_object_thaw_notify (obj); + + gtk_editable_set_position (GTK_EDITABLE (entry), 0); + gtk_entry_recompute (entry); } /** -- 2.30.2